package org.gwtEss.menu;

import java.util.Date;

import org.gwtEss.menu.HasSelectableCallback;
import org.gwtEss.menu.HasSubMenuItemWidget;

import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.datepicker.client.DatePicker;

public abstract class SubMenuItemWidget<W extends Widget> implements HasSubMenuItemWidget<W>{
	W widget;
	
	public Widget fetchWidget(HasSelectableCallback callback) {
		if (widget == null)
			widget = createWidget(callback);
		
		return widget;
	} 
}
